<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>test - mytb</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

        <link href="script/mytb/mytb.css" rel="stylesheet" />
        <script src="script/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"> </script>
        <script src="script/mytb/mytb.js" type="text/javascript" charset="utf-8"> </script>
        
        <style type="text/css">
            *{
                margin:0;
                padding:0;
            }
           .mytb{
               width: 50%;
               margin: 0px auto;
               text-align:center;
               background-color:#F1F1F1;
           }
        </style>
        <script type="text/javascript">
            
            $(function(){
                mytb("tbid");
                
                document.getElementById("test").oncontextmenu= function(){
                  alert("右击鼠标了");  
                  return false;
                };
            });
            
            
        </script>
    </head>
    <body>
<br />
<br />
<div class="mytb">
    <table border="0" cellspacing="0" cellpadding="0" id="tbid">
        <tbody>
            <tr class="cloneTr" > <td>  </td> <td>  </td> <td>  </td></tr>
            <tr> <td>  </td> <td>  </td><td>  </td> </tr>
            <tr> <td>  </td> <td>  </td><td>  </td> </tr>
            <tr> <td>  </td> <td>  </td><td>  </td> </tr>
        </tbody>
    </table>
 </div>    
 
 <div id="test"> here click right mouse </div>
    </body>
</html>

